<div class="panel panel-default panel-intro">
    <div class="panel-heading">

        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-wxapp" data-value="" data-toggle="tab">小程序配置</a></li>
            <li><a href="#t-ad" data-value="" data-toggle="tab">流量主配置</a></li>
            <li><a href="#t-subscription" data-value="" data-toggle="tab">订阅消息配置</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="alert alert-info-light" style="margin-bottom:10px;">
                <b>温馨提示</b><br>
                如果需要公众号，小程序数据互通，请通过微信开放平台绑定
                <br/>
                否则用户会生成2个账号
            </div>
            <div class="tab-pane fade active in" id="t-wxapp">
                <form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">AppId:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-app_id" data-rule="required" class="form-control" name="row[app_id]" type="text" {notempty name="$row.app_id"}value="{$row['app_id']}"{/notempty}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">Secret:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-secret" data-rule="required" class="form-control" name="row[secret]" type="text" {notempty name="$row.secret"}value="{$row['secret']}"{/notempty}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">微信支付商户号:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-mchid" data-rule="required" class="form-control" name="row[mchid]" type="text" {notempty name="$row.mchid"}value="{$row['mchid']}"{/notempty}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">微信支付Key:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-key" data-rule="required" class="form-control" name="row[key]" type="text" {notempty name="$row.key"}value="{$row['key']}"{/notempty}>
                        </div>
                    </div>

                    <input type="hidden" name="type" value="wxapp">
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>
            </div>


            {include file="kzvote/config/ad" /}
            {include file="kzvote/config/subscription" /}


    </div>
</div>
<style>
    .width50{
        width: 60%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
</style>

